export function formatDate(date) {
  let str = ''
  if (typeof date === 'string') {
    str = date.replace('T', ' ')
  } else {
    str = date.toString().replace('T', ' ')
  }
  return str
}
